片多多[优].js 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. var rule = {
  2. title: '片多多[优]',
  3. host: 'https://www.herbal-china.com/',
  4. url: '/mo-zea4s/fyclass/1/0/0/0/0/fypage',
  5. searchUrl: '/se-zea4s/**-1',
  6. searchable: 2,
  7. quickSearch: 0,
  8. filterable: 0,
  9. headers: {
  10. 'User-Agent': 'UC_UA',
  11. },
  12. class_parse: '.stui-header__menu li:gt(0):lt(6);a&&Text;a&&href;.*/(.*?)/',
  13. play_parse: true,
  14. lazy: "js:\n let html = request(input);\n let hconf = html.match(/r player_.*?=(.*?)</)[1];\n let json = JSON5.parse(hconf);\n let url = json.url;\n if (json.encrypt == '1') {\n url = unescape(url);\n } else if (json.encrypt == '2') {\n url = unescape(base64Decode(url));\n }\n if (/\\.(m3u8|mp4|m4a|mp3)/.test(url)) {\n input = {\n parse: 0,\n jx: 0,\n url: url,\n };\n } else {\n input = url && url.startsWith('http') && tellIsJx(url) ? {parse:0,jx:1,url:url}:input;\n }",
  15. limit: 6,
  16. double: true,
  17. 推荐: 'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.text-top-left&&Text;a&&href',
  18. 一级: '.stui-vodlist li;a&&title;a&&data-original;.text-top-left&&Text;a&&href',
  19. 二级: {
  20. title: '.stui-content__detail .title&&Text;.stui-content__detail&&p:eq(-2)&&a&&Text',
  21. title1: '.stui-content__detail .title&&Text;.stui-content__detail&&p&&Text',
  22. img: '.lazyload&&data-original',
  23. desc: '.stui-content__detail p&&Text;.stui-content__detail&&p:eq(-2)&&a:eq(2)&&Text;.stui-content__detail&&p:eq(-2)&&a:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text;.stui-content__detail p:eq(1)&&Text',
  24. desc1: '.stui-content__detail p:eq(4)&&Text;;;.stui-content__detail p:eq(1)&&Text',
  25. content: '.text-muted&&p&&Text',
  26. tabs: '.tab&&li',
  27. tabs1: '.stui-pannel_bd h1',
  28. lists: 'div.v1-div:eq(#id) a',
  29. },
  30. 搜索: 'ul.stui-vodlist__media,ul.stui-vodlist,#searchList li;a&&title;.lazyload&&data-original;.text-top-left&&Text;a&&href;.detail&&Text',
  31. }